package com.example.demofdfs.util;

import java.util.Properties;
import java.util.function.BiConsumer;

public class SystemProperties {

	public static String print() {
		Properties prop = System.getProperties();
		StringBuilder sb = new StringBuilder();
		
		prop.forEach(new BiConsumer<Object, Object>() {

			@Override
			public void accept(Object t, Object u) {
				sb.append(t).append("=").append(u).append("\r\n");
			}
		});
		
		return sb.toString();
	}
	
	public static void main(String[] args) {
		System.out.println(print());
	}
}
